__author__ = 'el_even'

from selenium.webdriver.common.by import By

from php4dvd.pages.internalpage import InternalPage


class MoviePage(InternalPage):
    """
    The movie details and actions page
    """

    @property
    def is_this_page(self):
        return self.is_element_visible((By.CSS_SELECTOR, '#content>section>nav'))

    @property
    def del_button(self):
        return self.driver.find_element(By.XPATH, ".//img[@title='Remove']")
